<?php
/*
 * 会员在线切换
 * @author     Mark <zhaody901@126.com>
 * @copyright  Copyright (c) 2013 lemon team
 * @version    $Id: 70f1ef54c88d44a8ec9bc42658951d5f7a8dcd8c $
 * @time       13-12-25 下午3:42
 */
defined('IN_IXDCW') or exit('Access Denied');
login();
$forward or $forward = SITE_URL;
$online = $_online ? 0 : 1;
$db->query("UPDATE {$db->getPre()}member SET online=$online WHERE userid=$_userid");
$db->query("UPDATE {$db->getPre()}online SET online=$online WHERE userid=$_userid");
dheader($forward);